//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}


//会员等级
export const rankTable = [
    {
        title: '等级顺序',
        align: "center",
        dataIndex: 'sort',
        width: 150,
    },
    {
        title: '名称',
        align: "left",
        dataIndex: 'name',
        width: 150,
    },


    {
        title: '晋级模式',
        width: 150,
        align: "center",
        dataIndex: 'entryType',
        scopedSlots: {
            customRender: 'entryType'
        }
    },

    {
        title: '晋级分数',
        width: 150,
        align: "center",
        dataIndex: 'entryScore',
    },

    {
        title: '图标',
        width: 100,
        dataIndex: 'icon',
    },

    {
        title: '备注',
        dataIndex: 'remark',
        ellipsis: true,
    },

    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//会员资料表头
export const profileTable = [


    {
        title: '会员编号',
        align: "left",
        dataIndex: 'code',
        width: 180,
    },


    {
        title: '会员姓名',
        align: "left",
        dataIndex: 'name',
        width: 180,
    },

    {
        title: '性别',
        align: "left",
        dataIndex: 'sex',
        width: 100,
    },

    {
        title: '会员等级',
        align: "left",
        dataIndex: 'rankId',
        width: 120,
    },


    {
        title: '手机号码',
        align: "left",
        dataIndex: 'phone',
        width: 180,
    },


    {
        title: '注册时间',
        align: "left",
        dataIndex: 'createTime',

    },


    {
        title: '操作',
        dataIndex: 'operation',
        width: 120,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];
